package com.commerce.controller;

import com.commerce.pojo.dto.Result;
import com.commerce.pojo.po.Evaluater;
import com.commerce.pojo.po.User;
import com.commerce.service.EvaluaterService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/evaluater")
public class EvaluaterController {
    @Autowired
    private EvaluaterService evaluaterService;

    @PostMapping("save")
    private Result save(@RequestBody Evaluater evaluater){
        Boolean flag = evaluaterService.save(evaluater);
        return new Result().ok();
    }
}
